﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Digitalmes.Model.ProductionManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.ProductionManagement.ProdBatchMaterialRecordVMs
{
    public partial class ProdBatchMaterialRecordTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._ProdBatchMaterialRecord._MaterialCode")]
        public ExcelPropety MaterialCode_Excel = ExcelPropety.CreateProperty<ProductionBatchMaterialRecord>(x => x.MaterialCode);
        [Display(Name = "_Model._ProdBatchMaterialRecord._Barcode")]
        public ExcelPropety Barcode_Excel = ExcelPropety.CreateProperty<ProductionBatchMaterialRecord>(x => x.Barcode);
        [Display(Name = "_Model._ProdBatchMaterialRecord._Wo")]
        public ExcelPropety Wo_Excel = ExcelPropety.CreateProperty<ProductionBatchMaterialRecord>(x => x.Wo);
        [Display(Name = "_Model._ProdBatchMaterialRecord._Qty")]
        public ExcelPropety Qty_Excel = ExcelPropety.CreateProperty<ProductionBatchMaterialRecord>(x => x.Qty);
        [Display(Name = "_Model._ProdBatchMaterialRecord._UsedQty")]
        public ExcelPropety UsedQty_Excel = ExcelPropety.CreateProperty<ProductionBatchMaterialRecord>(x => x.UsedQty);
        [Display(Name = "_Model._ProdBatchMaterialRecord._LineId")]
        public ExcelPropety LineId_Excel = ExcelPropety.CreateProperty<ProductionBatchMaterialRecord>(x => x.LineId);
        [Display(Name = "_Model._ProdBatchMaterialRecord._LineCode")]
        public ExcelPropety LineCode_Excel = ExcelPropety.CreateProperty<ProductionBatchMaterialRecord>(x => x.LineCode);
        [Display(Name = "_Model._ProdBatchMaterialRecord._OpId")]
        public ExcelPropety OpId_Excel = ExcelPropety.CreateProperty<ProductionBatchMaterialRecord>(x => x.OpId);
        [Display(Name = "_Model._ProdBatchMaterialRecord._OpCode")]
        public ExcelPropety OpCode_Excel = ExcelPropety.CreateProperty<ProductionBatchMaterialRecord>(x => x.OpCode);
        [Display(Name = "_Model._ProdBatchMaterialRecord._FeedingTime")]
        public ExcelPropety FeedingTime_Excel = ExcelPropety.CreateProperty<ProductionBatchMaterialRecord>(x => x.FeedingTime, true);
        [Display(Name = "_Model._ProdBatchMaterialRecord._ScanOpId")]
        public ExcelPropety ScanOpId_Excel = ExcelPropety.CreateProperty<ProductionBatchMaterialRecord>(x => x.ScanOpId);
        [Display(Name = "_Model._ProdBatchMaterialRecord._ScanOpCode")]
        public ExcelPropety ScanOpCode_Excel = ExcelPropety.CreateProperty<ProductionBatchMaterialRecord>(x => x.ScanOpCode);
        [Display(Name = "_Model._ProdBatchMaterialRecord._FeedingBy")]
        public ExcelPropety FeedingBy_Excel = ExcelPropety.CreateProperty<ProductionBatchMaterialRecord>(x => x.FeedingBy);
        [Display(Name = "_Model._ProdBatchMaterialRecord._CreateTime")]
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<ProductionBatchMaterialRecord>(x => x.CreateTime, true);
        [Display(Name = "_Model._ProdBatchMaterialRecord._UpdateTime")]
        public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<ProductionBatchMaterialRecord>(x => x.UpdateTime, true);
        [Display(Name = "_Model._ProdBatchMaterialRecord._CreateBy")]
        public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<ProductionBatchMaterialRecord>(x => x.CreateBy);
        [Display(Name = "_Model._ProdBatchMaterialRecord._UpdateBy")]
        public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<ProductionBatchMaterialRecord>(x => x.UpdateBy);
        [Display(Name = "_Model._ProdBatchMaterialRecord._IsValid")]
        public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<ProductionBatchMaterialRecord>(x => x.IsValid);
        [Display(Name = "_Model._ProdBatchMaterialRecord._TenantCode")]
        public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<ProductionBatchMaterialRecord>(x => x.TenantCode);

	    protected override void InitVM()
        {
            
        }

    }

    public class ProdBatchMaterialRecordImportVM : BaseImportVM<ProdBatchMaterialRecordTemplateVM, ProductionBatchMaterialRecord>
    {
            //import

    }

}